﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class TestPages_WordFilterServiceTestPage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void submitButton_Click(object sender, EventArgs e)
    {
        WordFilterService.WordFilterWCFServiceClient client = new WordFilterService.WordFilterWCFServiceClient();
        string result = "";
        try
        {
            result = client.WordFilter(this.textToFormatTextBox.Text);
        }
        catch (Exception ex)
        {
            result = ex.Message;
        }
        this.output.InnerText = "Output: " + result;
        client.Close();
    }
}